export const fullScreen = state => state.fullScreen

export const currentIndex = state => state.currentIndex

export const playlist = state => state.playlist

export const sequenceList = state => state.sequenceList

export const mode = state=> {
    return state.mode
}

export const songSrc = state => state.songSrc

export const songLyric = state => state.songLyric

export const currentSong = state => {
    let current = state.playlist[state.currentIndex]
    if(!current) {
        return {}
    }
    let song = {
        id: current.id,
        name: current.name,
        singer: current.ar[0].name,
        cover: current.al.picUrl,
    }
    return song
}
